package com.laogao.lesson046.controller;

import com.laogao.common.Result;
import com.laogao.common.ResultUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <b>description</b>： Java进阶、性能优化实战案例100讲，微信公众号:程序员恰恰，源码 & 文档 & 技术支持，请加个人微信号：it3306 <br>
 * <b>time</b>：2025/5/16 10:31 <br>
 * <b>author</b>：ready lao_gao
 */
@RestController
@RequestMapping("/user")
@Slf4j
public class UserController {

    @GetMapping("/test")
    public Result<Boolean> test() {
        int i = 10 / 0;
        return ResultUtils.success(true);
    }
}
